package part16;

import java.util.Arrays;

/**
 * @author wcj
 * @Date 2021/5/31 17:04
 * @Version 1.0
 */
public class Part166 {

    /**
     * Arrays.fill()方法可以填充数组元素，只不过只能填充相同的元素
     *
     * @param args
     */
    public static void main(String[] args) {
        int size = 6;
        int[] a1 = new int[size];
        long[] l1 = new long[size];
        Arrays.fill(a1, 1);
        Arrays.fill(l1, 1, 5, 605);
        System.out.println(Arrays.toString(a1));
        System.out.println(Arrays.toString(l1));
    }
}
